package view.transitions;

import java.awt.image.BufferedImage;

public class SlideFromTop extends Animator {

	public SlideFromTop(BufferedImage from, BufferedImage to) {
		super(from, to);
	}

	@Override
	public void animate() {
		this.currentFrame++;
		this.overlayPosition.y = -this.overlay.getHeight() + this.overlay.getHeight() * this.currentFrame	/ Animator.MAX_FRAMES;
		
	}

}
